<?php

ini_set('display_errors',true);
session_start();

require_once("../classes/Factory.php");
require_once("../classes/tracking/TimeEntry.php");

// is user logged on ? --------------------------------------------
if (!isset($_SESSION['user'])) { header("location: ./logon.php"); }
// ----------------------------------------------------------------

$left="../templates/misc/menu.php";
$data="../templates/trackingsList.php";
$userInfo = "../templates/misc/userInfo.php";

$alert = "";

$u = new SimpleXMLElement($_SESSION['user']);
$project = Factory::buildFromFile("Project", $_SESSION['project']);
$timeSheet = Factory::buildFromFile("TimeSheet", $_SESSION['timesheet']);
	
$list = $timeSheet->getByUser( (string) $u['uid'] );

include("../templates/main.php");

?>
